package me.idashu.attg.persistence;

import java.util.List;
import java.util.Map;

import me.idashu.attg.domain.ContributionEntity;

public interface ContributionMapper {

	public List<ContributionEntity> findContributionsByContextId(long contextId);

	public int contributionCount(long id);

	public List<ContributionEntity> contributionsList(Map<String, Object> map);

	public void deleteContribution(int contributionId);

	public ContributionEntity findContributionById(long id);

	public void insertContribution(ContributionEntity contribution);
	
	public int countContribution();

	public List<ContributionEntity> contributionDataStatistics(Map<String, Object> map);
	public void updateContributionFlag(ContributionEntity contribution);

	public List<ContributionEntity> findContributionsByContextIdAndFlag(
			ContributionEntity contribution);
	public List<ContributionEntity> getContributionById(int id);
}
